/**************************************************************************************
* GamePanel.java
* 
*************************************************************************************/
package creid.mythos.ui;

import java.awt.Graphics;

import javax.swing.JPanel;
import javax.swing.JTextField;

public class GamePanel extends JPanel
{

	//Constants/////////////////////////////////////////////////////////////////////////

	private static final long serialVersionUID = 7436676776397241887L;
	
	//Attributes////////////////////////////////////////////////////////////////////////
	
	//Constructors//////////////////////////////////////////////////////////////////////
	
	public GamePanel()
	{
		setBackground(GameUI.colors.get(ColorData.BLACK));
		setForeground(GameUI.colors.get(ColorData.WHITE));
		setFocusable(false);
		setFont(GameUI.GAME_FONT);
		//setBorder(javax.swing.BorderFactory.createLineBorder(java.awt.Color.yellow)); //Borders for debugging GUI layout issues
	}
	
	JTextField formattedTextField(int alignment)
	{
		JTextField text = new JTextField();
		text.setBorder(null);
		text.setBackground(GameUI.colors.get(ColorData.BLACK));
		text.setForeground(GameUI.colors.get(ColorData.WHITE));
		text.setHorizontalAlignment(alignment);
		text.setEditable(false);
		text.setFocusable(false);
		
		return text;
	}
	
	@Override
	public void paintComponent(Graphics g)
	{
		super.paintComponent(g);
	}
}
